package com.wsz.departments.feign;

import com.wsz.pojo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("employees")
public interface EmployeeClient {

    @GetMapping("/employees/{id}")
    R getEmployee(@PathVariable("id") Integer id);
}